package com.irain.pp.account.repository.model;

import com.irain.pp.account.repository.constant.TableConstants;
import com.irain.pp.account.repository.enums.AccountType;
import com.irain.pp.tool.mybatis.model.BaseJdbcDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.Table;

/**
 * @author WangYanPeng
 * @date 2017/10/17 10:16
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Table(name = TableConstants.USER)
public class PpUserDO extends BaseJdbcDO {

    private AccountType accountType;
    public final static String ACCOUNT_TYPE = "accountType";

    private String userName;
    public final static String USER_NAME = "userName";

    private String passwordHash;
    public final static String PASSWORD_HASH = "passwordHash";

    private String realName;
    public final static String REAL_NAME = "realName";

    private String mobile;
    public final static String MOBILE = "mobile";

    private String email;
    public final static String EMAIL = "email";


}
